/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.javafxcodegenerators.helpergenerators;

import pl.edu.amu.wmi.kino.visualjavafx.javafxcodegenerators.main.MainGenerator;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.ContentContainer;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.VisualObject;

/**
 *
 * @author Admin
 */
public class ContentGenerator {

    public static void generateContent(StringBuilder sb,ContentContainer c,int recursionLevel,Object original){
        recursionLevel++;
        sb.append("content:[\n");
        for(VisualObject v : c.getContent()){
            MainGenerator.generateNext(v,recursionLevel,v);
            sb.append(",\n");
        }
        sb.append("]\n");
    }
}
